Fluent interfaces in C# – method chaining

For those of you who just tuned in, this is a third post on the subject of fluent interfaces using C#. In case you haven’t read them before – here are my previous posts on the subject: IntroductionExtension Methods Right, now that we’re familiar with fluent interfaces it’s time to move to “Method Chaining”.Method chaining … Continue reading Fluent interfaces in C# – method chaining

Making string based method strongly typed

I can’t believe they implemented this way – was the first thought on my mind…The method in question is part of the new(er) NUnit’s constraint based model specifically the one used to assert a property value.Before we dive deeper a few words on the constraint based model: constraint based model Most unit testing framework have … Continue reading Making string based method strongly typed

DSL presentation at the local Software Craftsmanship group

A couple of days ago I gave a talk at the local Software Craftsmanship group on the subject of Domain Specific Languages (DSL) and fluent interfaces. After the session I prepared an exercise for the audience:Create a fluent interface for an online shop that calculates discounts based on customer and purchase information. I gave a … Continue reading DSL presentation at the local Software Craftsmanship group